package com.example;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

/**
 * @Author: zt
 * @Date: 2021/4/30 13:25
 * @Description:
 */
@SpringBootApplication
// UserMapper继承BaseMapper，必须扫描才能找到
@MapperScan("com.example.mapper")
// 开启 Security 注解
@EnableGlobalMethodSecurity(securedEnabled = true)
public class SecurityApplication {
    public static void main(String[] args) {
        SpringApplication.run(SecurityApplication.class, args);
    }
}
